home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Classes / XText / XTDemo.h < prev    next >
Encoding:
Text File  |  1992-04-14  |  1.0 KB  |  39 lines

  1. /*    This file is part of the XText package (version 0.8)
  2.     Mike Dixon, April 1992
  3.     
  4.     Copyright (c) 1992 Xerox Corporation.  All rights reserved.
  5.  
  6.     Use and copying of this software and preparation of derivative works based
  7.     upon this software are permitted.  This software is made available AS IS,
  8.     and Xerox Corporation makes no warranty about the software or its
  9.     performance.
  10. */
  11.  
  12. #import <objc/Object.h>
  13.  
  14. /*    The XTDemo object is the target of the button, the delegate of the app,
  15.     and the delegate of the window -- and has one method for each role.
  16.     
  17.     The xtext instance variable is actually initially set to the XTScroller
  18.     containing the XText (since that's the best IB can do); the appDidInit
  19.     method adjusts it to point at the XText directly.
  20.     
  21.     initialAction is shared by xtext and the window's fieldEditor (so the
  22.     same key bindings are available in both).
  23. */
  24.  
  25. @interface XTDemo:Object
  26. {
  27.     id xtext;
  28.     id initialAction;
  29.     id cmdField;
  30. }
  31.  
  32. - doIt:sender;
  33.  
  34. - appDidInit:sender;
  35.  
  36. - windowWillReturnFieldEditor:sender toObject:client;
  37.  
  38. @end
  39.